home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: What has C++ got?
- Date: 3 Jan 1996 21:57:29 GMT
- Organization: Clark Internet Services, Inc., Ellicott City, MD USA
- Message-ID: <4ceu49$g6c@clarknet.clark.net>
- References: <4bfdkd$qha@insosf1.netins.net> <tran0119.819779463@gold.tc.umn.edu> <4bsb4g$ai8@news1.sunbelt.net>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- dking@SunBelt.Net wrote:
- : In article <tran0119.819779463@gold.tc.umn.edu>,
- : tran0119@gold.tc.umn.edu (Cuong Q Tran) wrote:
- : >jdevries@netins.net (Joel DeVries) writes:
- : >
- : >>Can somebody tell me what C++ can do or what C++ has that ordinary C
- : >>doesn't have? Thanks
- : >
-
- Besides the benefits cited by others, I think one of the most important
- advantages of C++ is that when you define appropriate objects that "own"
- their own functions and their own member data, you no longer have to
- manage enormous function argument lists.
-
- No more "Oops, I guess I need to make a decision based on the person's
- employment date in this function. Damn! It's not in the argument list. Now
- I have to add it to the list in the definition, the declaration, AND in
- all the calling routines, AND make sure that all of the calling routines
- also already have access to employment date, or else I have to modify
- their argument lists as well!"
-
- Instead we have, "Oops, I guess I need ... employment date .... But since
- this is a member function of the employee object, I already have automatic
- access to it."
-
-